package com.mocha.bss.domain.rbac.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mocha.bss.domain.rbac.repository.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author songkui
 * @since 2022-03-11
 */
@Mapper
public interface MochaRoleMapper extends BaseMapper<RoleEntity> {

    List<RoleEntity> findRolesByUserId(@Param("userId") long userId);
}
